/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JP_Muestreo.java
 *
 * Created on 09/09/2009, 11:09:18 AM
 */

package gui;
import helper.JP_Modelo;
/**
 *
 * @author Vanessa
 */
public class JP_GenerarMuestra extends JP_Modelo {

    /** Creates new form JP_Muestreo */
    public JP_GenerarMuestra() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bg = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        txtCodAccion = new javax.swing.JTextField();
        btnConsultar = new javax.swing.JButton();
        jp_MuestrasGeneradas = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbMuestras = new javax.swing.JTable();
        jp_Derechohabientes1 = new javax.swing.JPanel();
        rbUrbanizacion = new javax.swing.JRadioButton();
        rbAleatorio = new javax.swing.JRadioButton();
        txtCodAccion1 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        btnProcesar = new javax.swing.JButton();
        btnCerrar = new javax.swing.JButton();
        btnDetalles = new javax.swing.JButton();

        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(controlaccionescomercial.ControlAccionesComercialApp.class).getContext().getResourceMap(JP_GenerarMuestra.class);
        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        txtCodAccion.setText(resourceMap.getString("txtCodAccion.text")); // NOI18N
        txtCodAccion.setName("txtCodAccion"); // NOI18N

        btnConsultar.setFont(resourceMap.getFont("btnConsultar.font")); // NOI18N
        btnConsultar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/fife/plaf/Office2003/find.gif"))); // NOI18N
        btnConsultar.setText(resourceMap.getString("btnConsultar.text")); // NOI18N
        btnConsultar.setName("btnConsultar"); // NOI18N

        jp_MuestrasGeneradas.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jp_MuestrasGeneradas.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jp_MuestrasGeneradas.border.titleFont"))); // NOI18N
        jp_MuestrasGeneradas.setName("jp_MuestrasGeneradas"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        tbMuestras.setAutoCreateRowSorter(true);
        tbMuestras.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tbMuestras.setName("tbMuestras"); // NOI18N
        jScrollPane1.setViewportView(tbMuestras);

        javax.swing.GroupLayout jp_MuestrasGeneradasLayout = new javax.swing.GroupLayout(jp_MuestrasGeneradas);
        jp_MuestrasGeneradas.setLayout(jp_MuestrasGeneradasLayout);
        jp_MuestrasGeneradasLayout.setHorizontalGroup(
            jp_MuestrasGeneradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)
        );
        jp_MuestrasGeneradasLayout.setVerticalGroup(
            jp_MuestrasGeneradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
        );

        jp_Derechohabientes1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jp_Derechohabientes1.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jp_Derechohabientes1.border.titleFont"))); // NOI18N
        jp_Derechohabientes1.setName("jp_Derechohabientes1"); // NOI18N

        bg.add(rbUrbanizacion);
        rbUrbanizacion.setFont(resourceMap.getFont("rbUrbanizacion.font")); // NOI18N
        rbUrbanizacion.setSelected(true);
        rbUrbanizacion.setText(resourceMap.getString("rbUrbanizacion.text")); // NOI18N
        rbUrbanizacion.setName("rbUrbanizacion"); // NOI18N

        bg.add(rbAleatorio);
        rbAleatorio.setFont(resourceMap.getFont("rbAleatorio.font")); // NOI18N
        rbAleatorio.setText(resourceMap.getString("rbAleatorio.text")); // NOI18N
        rbAleatorio.setName("rbAleatorio"); // NOI18N

        txtCodAccion1.setName("txtCodAccion1"); // NOI18N

        jLabel2.setFont(resourceMap.getFont("rbUrbanizacion.font")); // NOI18N
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        btnProcesar.setFont(resourceMap.getFont("btnProcesar.font")); // NOI18N
        btnProcesar.setText(resourceMap.getString("btnProcesar.text")); // NOI18N
        btnProcesar.setName("btnProcesar"); // NOI18N

        javax.swing.GroupLayout jp_Derechohabientes1Layout = new javax.swing.GroupLayout(jp_Derechohabientes1);
        jp_Derechohabientes1.setLayout(jp_Derechohabientes1Layout);
        jp_Derechohabientes1Layout.setHorizontalGroup(
            jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                .addGroup(jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                                .addComponent(rbUrbanizacion)
                                .addGap(18, 18, 18)
                                .addComponent(rbAleatorio))
                            .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtCodAccion1))))
                    .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                        .addGap(214, 214, 214)
                        .addComponent(btnProcesar, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(133, Short.MAX_VALUE))
        );
        jp_Derechohabientes1Layout.setVerticalGroup(
            jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_Derechohabientes1Layout.createSequentialGroup()
                .addGroup(jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbUrbanizacion)
                    .addComponent(rbAleatorio))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addGroup(jp_Derechohabientes1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(txtCodAccion1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProcesar))
                .addContainerGap())
        );

        btnCerrar.setFont(resourceMap.getFont("btnCerrar.font")); // NOI18N
        btnCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/fife/plaf/Office2003/close.gif"))); // NOI18N
        btnCerrar.setText(resourceMap.getString("btnCerrar.text")); // NOI18N
        btnCerrar.setName("btnCerrar"); // NOI18N
        btnCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarActionPerformed(evt);
            }
        });

        btnDetalles.setFont(resourceMap.getFont("btnDetalles.font")); // NOI18N
        btnDetalles.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/fife/plaf/Office2003/printpreview.gif"))); // NOI18N
        btnDetalles.setText(resourceMap.getString("btnDetalles.text")); // NOI18N
        btnDetalles.setName("btnDetalles"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(txtCodAccion, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnConsultar)
                .addGap(128, 128, 128))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(272, Short.MAX_VALUE)
                .addComponent(btnDetalles)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCerrar))
            .addComponent(jp_MuestrasGeneradas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jp_Derechohabientes1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(txtCodAccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnConsultar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jp_Derechohabientes1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jp_MuestrasGeneradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCerrar)
                    .addComponent(btnDetalles)))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarActionPerformed
        this.cerrarPadre();
}//GEN-LAST:event_btnCerrarActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup bg;
    private javax.swing.JButton btnCerrar;
    private javax.swing.JButton btnConsultar;
    private javax.swing.JButton btnDetalles;
    private javax.swing.JButton btnProcesar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel jp_Derechohabientes1;
    private javax.swing.JPanel jp_MuestrasGeneradas;
    private javax.swing.JRadioButton rbAleatorio;
    private javax.swing.JRadioButton rbUrbanizacion;
    private javax.swing.JTable tbMuestras;
    private javax.swing.JTextField txtCodAccion;
    private javax.swing.JTextField txtCodAccion1;
    // End of variables declaration//GEN-END:variables

}
